package cn.ruihusoft.ql.enums;

import cn.ruihusoft.ql.pojo.env.EnvDetailResponse;
import cn.ruihusoft.ql.pojo.env.UpdateEnvResponse;
import cn.ruihusoft.ql.pojo.user.UserTokenResponse;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum ConsEnum {

    USER_TOKEN("/auth/token", MethodEnum.GET, ResultTypeEnum.OBJECT, UserTokenResponse.class),
    ALL_ENV("/envs", MethodEnum.GET, ResultTypeEnum.LIST, EnvDetailResponse.class),
    UPDATE_ENV("/envs",MethodEnum.PUT,ResultTypeEnum.OBJECT, UpdateEnvResponse.class),
    ENABLE_ENV("/envs/enable", MethodEnum.PUT, ResultTypeEnum.LIST, Integer.class),

    ;

    final private String url;
    final private MethodEnum method;
    final private ResultTypeEnum type;
    final private Class<?> clazz;
}
